package com.huang.eduorder.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huang.eduorder.entity.Order;
import com.huang.eduorder.entity.SkillCourse;
import com.hunag.utils.orderVo.EduCourseOrder;

import java.util.List;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author testjava
 * @since 2021-04-03
 */
public interface OrderService extends IService<Order> {

    String createOrder(String courseId, String memberId);

    Order createOrder2(String memberId, SkillCourse skillCourse) throws Exception;

    Boolean isBuy(String courseId, String memberId);

    void updateStatus(String orderId);

    List<EduCourseOrder> getBuyList(String memberId);
}
